package com.example.shangjinlieren;

import com.example.shangjinlieren.slice.MainMoneyListDetailSlice;
import com.example.shangjinlieren.theme.MyColors;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.window.service.Window;
import ohos.agp.window.service.WindowManager;

public class MoneyDetail extends Ability {
    @Override
    public void onStart(Intent intent) {
        //开启沉浸式导航栏
        getWindow().addFlags(WindowManager.LayoutConfig.MARK_TRANSLUCENT_STATUS);
        super.onStart(intent);
        super.setMainRoute(MainMoneyListDetailSlice.class.getName());
        //设置状态栏颜色 文字颜色
        Window window = getWindow();
        window.setStatusBarVisibility(0);
        window.setStatusBarColor(MyColors.themeColor);
    }
}
